/**
  * Author: Mei
  * Date: 2020-11-20 18:47
  * Description: 
  *
  */
#include <iostream>
#include <vector>
#include <algorithm>
#include <memory>
#include <utility>
#include <functional>

using namespace std;

//lambda与stl算法的使用
int main() {
    vector<int> vec{1, 2, 3, 4, 5, 6, 7};
    int value = 3;
    int count = count_if(vec.begin(), vec.end(), [value](int i) -> bool { return i >= value; });

    cout << count << endl;

    return 0;
}